package com.zlcx.tz.live.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * @AUTHOR xhl
 * @CREATE 2019-04-18 10:53
 **/
@Data
@ApiModel("房间信息")
public class HomePageListVO {

    @ApiModelProperty(value = "房间id")
    private Long id;

    @ApiModelProperty(value = "房间名称")
    private String roomName;

    @ApiModelProperty(value = "房间介绍")
    private String roomDesc;

    @ApiModelProperty(value = "当前连麦人数")
    private Integer publisherNumber;

    @ApiModelProperty(value = "最大上麦人数")
    private Integer roomPublisherMax;

    @ApiModelProperty(value = "当前观众人数")
    private Integer audienceNumber;

    @ApiModelProperty(value = "房间图片地址")
    private String roomAvatar;

    @ApiModelProperty(value = "房主用户id")
    private Long ownerUserId;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;

    @ApiModelProperty(value = "房间时长，单位秒")
    private Long roomTimes;

    @ApiModelProperty(value = "连麦用户")
    private List<UserJoinVO> publishers;

}
